<?php date_default_timezone_set('Australia/Brisbane'); ?>
<script src="<?php echo base_url(); ?>assets/js/assessment.js"></script>

<div id="assessment_viewer">

	<?php
	$nowU = date('U');
	$nowU = $nowU + 604800;
	$nowUa = date('U');
	$format = 'Y-m-d H:i:s';
	$date = DateTime::createFromFormat($format, $item_details['due_date']);
	$dateU = $date->format('U');
	$time = $date->format('G:i');
	$date = $date->format('d/m/Y');
	?>

	<h1><?php echo $item_details['assessment_title']; ?> <span<?php if($nowU >= $dateU && $nowUa < $dateU){echo ' class="r"';}?>> : <?php if($nowUa > $dateU){echo 'Was ';}?>Due <?php echo $date.' at '.$time;?> - Weight: <?php echo $item_details['weight']; ?>% </span></h1>
	<p class="lblabove">Description:</p>
    <p><?php echo $item_details['description']; ?></p>
</div>
